package so.sao.code.service.infrastructure.enums;

import so.sao.top.core.util.enums.NamedEnumEntity;

/**
 * Created by Administrator on 2017/10/19.
 */
public enum ROLE implements NamedEnumEntity<Integer> {
    ADMIN(1, "管理员"), USER(2, "用户");
    private Integer value;

    private String name;

    ROLE(Integer value, String name) {
        this.name = name;
        this.value = value;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public Integer getValue() {
        return value;
    }
}
